Skip to content

fix: add missing logical classes#368

Merged
schoero merged 3 commits intomainfrom
fix/add-missing-logical-classes
Apr 28, 2026
Merged

fix: add missing logical classes#368
schoero merged 3 commits intomainfrom
fix/add-missing-logical-classes

Conversation

@schoero
Copy link
Copy Markdown
Owner

@schoero schoero commented Apr 22, 2026

closes: #362

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates enforce-logical-properties to catch additional physical Tailwind utilities that have direct logical equivalents (or a logical split), closing #362.

Changes:

  • Add mappings for h-*, w-*, min-h-*, min-w-*, max-h-*, max-w-* to logical block/inline equivalents.
  • Add a special-case mapping for size-* that auto-fixes into two classes: block-* inline-*.
  • Extend tests and documentation to cover the new mappings and the multi-class size-* fix behavior.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/rules/enforce-logical-properties.ts Adds new mappings and enables returning multiple replacement classes for size-*, with updated messaging.
src/rules/enforce-logical-properties.test.ts Adds coverage for the new mappings and verifies size-* is split into two logical classes (including variants / important).
docs/rules/enforce-logical-properties.md Documents the newly supported physical→logical mappings, including size-* splitting.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@schoero schoero merged commit aa58304 into main Apr 28, 2026
24 checks passed
@schoero schoero deleted the fix/add-missing-logical-classes branch April 28, 2026 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

enforce-logical-properties Missing height/width transforms

2 participants